﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="wfrmEnviarTransferencia.aspx.cs" Inherits="pryTransfinter.Transaciones.wfrmEnviarTransferencia" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPopupControl" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
//        $("#MainContent_txtCodigoSwift_I").keydown(function (e) {

//            if (e.keyCode >= 65 & e.keyCode <= 90) {
//                val1 = $("#MainContent_txtCodigoSwift_I").val();
//                $("#MainContent_txtCodigoSwift_I").val(val1 + String.fromCharCode(e.keyCode));
//                return false;
//            }
//        });

        $("#MainContent_txtCodigoSwift_I").live('keydown', function (e) {
            
                if (e.keyCode >= 65 & e.keyCode <= 90) {
                    val1 = $("#MainContent_txtCodigoSwift_I").val();
                    $("#MainContent_txtCodigoSwift_I").val(val1 + String.fromCharCode(e.keyCode));
                    return false;
                }
           
        });

    });
</script>

<script type="text/javascript">

    function agregar() {
        lblconfirmacion.SetText("Esta seguro de registrar los datos ingresados.")
        popupConfirmarAB.Show();
    }
    function modificar() {
        lblconfirmacion.SetText("Esta seguro de actualizar el registro seleccionado.")
        popupConfirmarAB.Show();
    }
    function eliminar() {
        lblconfirmacion.SetText("Esta seguro de eliminar el registro seleccionado.")
        popupConfirmarAB.Show();
    }
 
    function cargarvaloresCombo() {
        var cd = cboCuentaCliente.GetText();
        var cd1 = cboCuentaCliente.GetSelectedIndex();
        ASPxTextBox1.SetText(cd);
    }
</script>
    <style type="text/css">
.DivPrincipal
{
    width:90%;
    margin: 0 auto;
}
.DivContenedor
{
    width:90%;
    margin:0 auto;
    
}
.p
{
    padding:0.2cm 2cm 0.2cm 2cm;
    text-align:left;
}
.pad
{
    padding:0.2cm 1cm 0.2cm 1cm;
    text-align:left;
}
.input
{
    font-family: 'Lucida Sans';
    font-size: 12px;
    text-transform: uppercase;
}

</style>

<script type="text/javascript">
    function toUpper(control) {

        if (/[a-z]/.test(control.value)) {
            control.value = control.value.toUpperCase();
        }
    }
</script>
<script type="text/javascript">
    function soloDocumento(e) {
        key = e.keyCode || e.which;
        tecla = String.fromCharCode(key).toLowerCase();
        letras = "abcdefghijklmnopqrstuvwxyz0123456789";
        especiales = [8,127];
        tecla_especial = false
        for (var i in especiales) {
            if (key == especiales[i]) {
                tecla_especial = true;
                break;
            }
        }

        if (letras.indexOf(tecla) == -1 && !tecla_especial) {
            return false;
        }
    }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="id_transfiter" runat="server">

<asp:UpdatePanel ID="transf" runat="server">
<ContentTemplate>

<div class="DivPrincipal" style="background-color:White">
<div>
    <dx:ASPxLabel ID="ASPxLabel13" runat="server" Font-Bold="True" 
        Font-Size="Medium" Text="Enviar Transferencia">
    </dx:ASPxLabel>
</div>
<table align="center" style="width:100%">


<tr>
<td>
<fieldset class="DivContenedor" style="width:600px" >
<legend>
Ordenante
</legend>


<table style="width:80%">
<tr>
<td class="p">
    <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="Nombre">
    </dx:ASPxLabel>
</td>
<td class="p">
<dx:ASPxComboBox ID="cboCuenta" runat="server" Width="200px" 
        AutoPostBack="True" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" Spacing="0" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        onvaluechanged="cboCuenta_ValueChanged">
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
        </LoadingPanelImage>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ButtonStyle Width="13px">
        </ButtonStyle>
        <ValidationSettings SetFocusOnError="True">
            <RequiredField ErrorText="Obligatorio" IsRequired="True" />
        </ValidationSettings>
    </dx:ASPxComboBox>

    
</td>
</tr>
<tr>
<td class="p">
    <dx:ASPxLabel ID="ASPxLabel2" runat="server" Text="Cuenta">
    </dx:ASPxLabel>
</td>
<td class="p">
<dx:ASPxComboBox ID="cboCuentaCliente" runat="server" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" Spacing="0" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        Width="200px" ShowShadow="False" 
        ClientInstanceName="cboCuentaCliente">
        <ClientSideEvents ValueChanged="function(s, e) {
	cargarvaloresCombo();
}" />
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
        </LoadingPanelImage>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ButtonStyle Width="13px">
        </ButtonStyle>
        <ValidationSettings SetFocusOnError="True">
            <RequiredField ErrorText="Obligatorio" IsRequired="True" />
        </ValidationSettings>
    </dx:ASPxComboBox>

    
</td>
</tr>
<tr>
<td class="p">
    <dx:ASPxTextBox ID="ASPxTextBox1" runat="server" 
        ClientInstanceName="ASPxTextBox1" Width="10px" ClientVisible="False">
    </dx:ASPxTextBox>
    </td>
<td class="p">
    <dx:ASPxButton ID="btnBuscarCliente" runat="server" 
        CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
        CssPostfix="Office2003Blue" 
        SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" 
        Text="Buscar Cliente" Width="160px" CausesValidation="False">
    </dx:ASPxButton>
    </td>
</tr>
</table>

</fieldset>
</td>
</tr>
<tr>
<td style="width:80%" align="center">
<table width="90%">
<tr>
<td class="p" style="text-align:left">
    <dx:ASPxLabel ID="ASPxLabel3" runat="server" Text="Moneda">
    </dx:ASPxLabel>
</td>
<td class="p">
    <dx:ASPxComboBox ID="cboMoneda" runat="server" Width="250px" SelectedIndex="0" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" Spacing="0" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
        <Items>
            <dx:ListEditItem Selected="True" Text="USD" Value="USD" />
            <dx:ListEditItem Text="EUR" Value="EUR" />
        </Items>
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
        </LoadingPanelImage>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
    </dx:ASPxComboBox>
</td></tr>
<tr>
<td class="p" style="text-align:left">
    <dx:ASPxLabel ID="ASPxLabel4" runat="server" Text="Monto">
    </dx:ASPxLabel>
</td>
<td class="p">
    <dx:ASPxTextBox ID="txtMonto" runat="server" Width="250px" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
        <ValidationSettings SetFocusOnError="True">
            <RegularExpression ErrorText="Formato Incorrecto" 
                ValidationExpression="^(\d|-)?(\d|,)*\.?\d*$" />
            <RequiredField ErrorText="Obligatorio" IsRequired="True" />
        </ValidationSettings>
    </dx:ASPxTextBox>
</td>
</tr>
    <tr>
        <td class="p" style="text-align:left">
            Código SWIFT</td>
        <td class="p">
            <dx:ASPxTextBox ID="txtCodigoSwift" runat="server" ClientInstanceName="txtCodigoSwift"
                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                CssPostfix="Office2010Blue" 
                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="250px">
                <ValidationSettings SetFocusOnError="True" ValidationGroup="VALIDARGRUPO">
                    <RegularExpression ErrorText="" />
                    <RequiredField ErrorText="Obligatorio" IsRequired="True" />
                </ValidationSettings>
            </dx:ASPxTextBox>
        </td>
    </tr>
    <tr>
        <td class="p" style="text-align:left">
            <dx:ASPxTextBox ID="ASPxTextBox2" runat="server" 
                ClientInstanceName="ASPxTextBox1" ClientVisible="False" Width="10px">
            </dx:ASPxTextBox>
        </td>
        <td class="p">
        <dx:ASPxButton ID="btnValidarCodigo" runat="server" 
                CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                CssPostfix="Office2003Blue" onclick="btnValidarCodigo_Click" 
                SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" 
                Text="Validar Código" ValidationGroup="VALIDARGRUPO" Width="160px">
            </dx:ASPxButton>
        </td>
    </tr>
<tr>
<td class="p" style="text-align:left">
    <dx:ASPxLabel ID="ASPxLabel5" runat="server" Text="Banco Destino">
    </dx:ASPxLabel>
</td>
<td class="p">
    <dx:ASPxComboBox ID="cboBancoDestino" runat="server" Width="250px" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" Spacing="0" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        ClientEnabled="False">
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
        </LoadingPanelImage>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ValidationSettings SetFocusOnError="True">
            <RequiredField ErrorText="Obligatorio" IsRequired="True" />
        </ValidationSettings>
    </dx:ASPxComboBox>
</td>
</tr>

</table>
</td>

</tr>

<tr>
<td style="width:80%">
<fieldset class="DivContenedor" style="width:600px">
<legend>Beneficiario</legend>
<table>
<tr>
<td>
    &nbsp;</td>
<td class="p"></td>
</tr>
<tr>
<td class="p" >
    <dx:ASPxLabel ID="ASPxLabel7" runat="server" Text="Cuenta">
    </dx:ASPxLabel>
</td>
<td >
<asp:UpdatePanel ID="updatecuentabeneficiario" runat="server">
<ContentTemplate>


    <dx:ASPxComboBox ID="cboCuentaBeneficiario" runat="server" Width="200px" 
        onselectedindexchanged="cboCuentaBeneficiario_SelectedIndexChanged" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" Spacing="0" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        AutoPostBack="True">
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
        </LoadingPanelImage>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ValidationSettings SetFocusOnError="True">
            <RequiredField ErrorText="Obligatorio" IsRequired="True" />
        </ValidationSettings>
    </dx:ASPxComboBox></ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td class="p">
    <dx:ASPxLabel ID="ASPxLabel8" runat="server" Text="Nombre">
    </dx:ASPxLabel>
</td>
<td>
    <dx:ASPxTextBox ID="txtNombreBeneficiario" runat="server" Width="200px" 
        ClientEnabled="False" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
    </dx:ASPxTextBox>
</td>
</tr>
<tr>
<td class="p">
    <dx:ASPxLabel ID="ASPxLabel9" runat="server" Text="Direccion">
    </dx:ASPxLabel>
</td>
<td>
    <dx:ASPxTextBox ID="txtDireccionBeneficiario" runat="server" Width="200px" 
        ClientEnabled="False" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
    </dx:ASPxTextBox>
</td>
</tr>
<tr>
<td class="p">
    &nbsp;</td>
<td>
    &nbsp;</td>
</tr>
<tr>
<td class="p" align="center">
    <dx:ASPxButton ID="btnAgregarBenef" runat="server" Text="Agregar Beneficiario" 
        Width="160px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        CausesValidation="False" onclick="btnAgregarBenef_Click">
    </dx:ASPxButton>
</td>
<td class="p" align="center">
    <dx:ASPxButton ID="btnGuardarBenef" runat="server" Text="Guardar Beneficiario" 
        Width="160px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        ClientVisible="False">
    </dx:ASPxButton>
</td>
</tr>
<tr>
<td class="p">
    &nbsp;</td>
<td class="p">
    &nbsp;</td>
</tr>
</table>

</fieldset>
</td>
</tr>

<tr>
<td style="width:80%" align="center">
<table  aling="center">
<tr>
<td class="p">
    &nbsp;</td>
<td>
    &nbsp;</td>
</tr>
<tr>
<td class="p">
    <dx:ASPxLabel ID="ASPxLabel10" runat="server" Text="Tipo de cargo">
    </dx:ASPxLabel>
</td>
<td>
    <dx:ASPxComboBox ID="cboTipocargo" runat="server" SelectedIndex="0"  AutoPostBack="true"
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" Spacing="0" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        onselectedindexchanged="cboTipocargo_SelectedIndexChanged">
        <Items>
            <dx:ListEditItem Selected="True" Text="SHA" Value="SHA" />
            <dx:ListEditItem Text="OUR" Value="OUR" />
        </Items>
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
        </LoadingPanelImage>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
    </dx:ASPxComboBox>
</td>
</tr>
<tr>
<td>
    &nbsp;</td>
<td class="p">
    <dx:ASPxLabel ID="lblTipoCargo" runat="server">
    </dx:ASPxLabel>
    </td>
</tr>
<tr>
<td valign="top" class="p">
    <dx:ASPxLabel ID="ASPxLabel11" runat="server" Text="Detalle de Pago">
    </dx:ASPxLabel>
</td>
<td>
    <dx:ASPxMemo ID="memDetallePago" runat="server" Height="71px" Width="250px" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
    </dx:ASPxMemo>
</td>
</tr>
<tr>
<td valign="top" class="p">
    <dx:ASPxLabel ID="ASPxLabel12" runat="server" Text="Observaciones">
    </dx:ASPxLabel>
</td>
<td>
    <dx:ASPxMemo ID="memObservaciones" runat="server" Height="71px" Width="250px" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
    </dx:ASPxMemo>
</td>
</tr>
<tr>
<td valign="top" class="p">
    &nbsp;</td>
<td>
    &nbsp;</td>
</tr>
<tr>
<td align="center" class="p">
    <dx:ASPxButton ID="btnCrear" runat="server" Text="CREAR" Width="100px" 
        onclick="btnCrear_Click" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
    </dx:ASPxButton>
</td>
<td align="center" class="p">
    <dx:ASPxButton ID="btnCancelar" runat="server" Text="CANCELAR" Width="100px" 
        onclick="btnCancelar_Click" CausesValidation="False" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
    </dx:ASPxButton>
</td>
</tr>
</table>

</td>
</tr>

</table>












</div>


   <dx:ASPxPopupControl ID="popupMensaje" runat="server" Width="300px" 
        ClientInstanceName="popupMensaje" Modal="True" 
        PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
        CloseAction="CloseButton" EnableHotTrack="False" EnableViewState="False" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" ShowPageScrollbarWhenModal="True">
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <ClientSideEvents Shown="function(s, e) {
	popupConfirmacion.Hide();
}" />
        <HeaderStyle>
        <Paddings PaddingLeft="7px" />
        </HeaderStyle>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
    <dx:ASPxPanel ID="ASPxPanel1" runat="server" Width="300px">
        <panelcollection>
            <dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
            <table align="center">
            <tr>
            <td align="center">
                <dx:ASPxLabel ID="lblmensaje" runat="server">
                </dx:ASPxLabel>
            </td>
            </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                </tr>
            <tr>
            <td  align="center">
                <dx:ASPxButton ID="btnAceptarM" runat="server" Text="Aceptar" Width="100px" 
                    CausesValidation="False" OnClick="btnAceptarM_Click" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    AutoPostBack="False">
                    <ClientSideEvents Click="function(s, e) {
	popupMensaje.Hide();
}" />
                </dx:ASPxButton>
            </td>
            </tr>
            </table>
            </dx:PanelContent>
        </panelcollection>
    </dx:ASPxPanel>
            </dx:PopupControlContentControl>
</ContentCollection>
    </dx:ASPxPopupControl>
<br />
<br />
<dx:ASPxPopupControl ID="popupConfirmacion" runat="server" Width="300px" 
        ClientInstanceName="popupConfirmacion" Modal="True" 
        PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
        CloseAction="CloseButton" EnableHotTrack="False" EnableViewState="False" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" ShowPageScrollbarWhenModal="True">
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <HeaderStyle>
        <Paddings PaddingLeft="7px" />
        </HeaderStyle>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server" SupportsDisabledAttribute="True">
    <dx:ASPxPanel ID="ASPxPanel2" runat="server" Width="300px">
        <panelcollection>
            <dx:PanelContent ID="PanelContent2" runat="server" SupportsDisabledAttribute="True">
            <table align="center">
            <tr>
            <td colspan="2" align="center">
                <dx:ASPxLabel ID="lblconfirmacion" runat="server">
                </dx:ASPxLabel>
            </td>
            </tr>
                <tr>
                    <td align="center" colspan="2">
                        &nbsp;</td>
                </tr>
            <tr>
            <td>
                <dx:ASPxButton ID="btnAceptarC" runat="server" Text="Aceptar" Width="100px" 
                    CausesValidation="False" OnClick="btnAceptarC_Click" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                    <ClientSideEvents Click="function(s, e) {
	popupConfirmacion.Hide();
}" />
                </dx:ASPxButton>
            </td>
            <td>
                <dx:ASPxButton ID="btnCancelarC" runat="server" Text="Cancelar" Width="100px" 
                    CausesValidation="False" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    AutoPostBack="False">
                    <ClientSideEvents Click="function(s, e) {
	popupConfirmacion.Hide();
}" />
                </dx:ASPxButton>
            </td>
            </tr>
            </table>
            </dx:PanelContent>
        </panelcollection>
    </dx:ASPxPanel>
            </dx:PopupControlContentControl>
</ContentCollection>
    </dx:ASPxPopupControl>

    <dx:ASPxPopupControl ID="popupConfirmarAB" runat="server" Width="300px" 
        ClientInstanceName="popupConfirmarAB" Modal="True" 
        PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
        CloseAction="CloseButton" EnableHotTrack="False" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        ShowPageScrollbarWhenModal="True" HeaderText="Confirmación" 
            AllowDragging="True">
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <HeaderStyle>
        <Paddings PaddingLeft="7px" />
        </HeaderStyle>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl5" runat="server" SupportsDisabledAttribute="True">
    <dx:ASPxPanel ID="ASPxPanel5" runat="server" Width="300px">
        <panelcollection>
            <dx:PanelContent ID="PanelContent5" runat="server" SupportsDisabledAttribute="True">
            <asp:UpdatePanel ID="updatepopup" runat="server">
            <ContentTemplate>
            <table align="center">
            <tr>
            <td colspan="2" align="center">
                <dx:ASPxLabel ID="lblmensajeconfi" runat="server">
                </dx:ASPxLabel>
            </td>
            </tr>
                <tr>
                    <td align="center" colspan="2">
                        &nbsp;</td>
                </tr>
            <tr>
            <td>
                <dx:ASPxButton ID="btnAceptarB" runat="server" Text="Aceptar" Width="100px" 
                    CausesValidation="False" OnClick="btnAceptarB_Click" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                    <ClientSideEvents Click="function(s, e) {
	popupConfirmarAB.Hide();
}"  />
                </dx:ASPxButton>
            </td>
            <td>
                <dx:ASPxButton ID="ASPxButton4" runat="server" Text="Cancelar" Width="100px" 
                    CausesValidation="False" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    AutoPostBack="False">
                    <ClientSideEvents Click="function(s, e) {
	popupConfirmarAB.Hide();
}" />
                </dx:ASPxButton>
            </td>
            </tr>
            </table>
            </ContentTemplate>
            </asp:UpdatePanel>
            
            </dx:PanelContent>
        </panelcollection>
    </dx:ASPxPanel>
            </dx:PopupControlContentControl>
</ContentCollection>
    </dx:ASPxPopupControl>
    <dx:ASPxPopupControl ID="popupMensajes" runat="server" Width="300px" 
        ClientInstanceName="popupMensajes" Modal="True" 
        PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
        CloseAction="CloseButton" EnableHotTrack="False" EnableViewState="False" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" ShowPageScrollbarWhenModal="True">
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <HeaderStyle>
        <Paddings PaddingLeft="7px" />
        </HeaderStyle>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl3" runat="server" SupportsDisabledAttribute="True">
    <dx:ASPxPanel ID="ASPxPanel3" runat="server" Width="300px">
        <panelcollection>
            <dx:PanelContent ID="PanelContent3" runat="server" SupportsDisabledAttribute="True">
            <table align="center">
            <tr>
            <td colspan="2" align="center">
                <dx:ASPxLabel ID="mensaje" runat="server" ClientInstanceName="mensaje">
                </dx:ASPxLabel>
            </td>
            </tr>
                <tr>
                    <td align="center" colspan="2">
                        &nbsp;</td>
                </tr>
            <tr>
            <td>
                <dx:ASPxButton ID="ASPxButton1" runat="server" Text="Aceptar" Width="100px" 
                    CausesValidation="False" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                    <ClientSideEvents Click="function(s, e) {
	popupMensajes.Hide();
}" />
                </dx:ASPxButton>
            </td>
          
            </tr>
            </table>
            </dx:PanelContent>
        </panelcollection>
    </dx:ASPxPanel>
            </dx:PopupControlContentControl>
</ContentCollection>
    </dx:ASPxPopupControl>

    <dx:ASPxPopupControl ID="popupNroTrans" runat="server" Width="300px" 
        ClientInstanceName="popupNroTrans" Modal="True" 
        PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
        CloseAction="CloseButton" EnableHotTrack="False" EnableViewState="False" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" ShowPageScrollbarWhenModal="True">
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <ClientSideEvents Shown="function(s, e) {
	popupConfirmacion.Hide();
}" />
        <HeaderStyle>
        <Paddings PaddingLeft="7px" />
        </HeaderStyle>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl4" runat="server" SupportsDisabledAttribute="True">
    <dx:ASPxPanel ID="ASPxPanel4" runat="server" Width="300px">
        <panelcollection>
            <dx:PanelContent ID="PanelContent4" runat="server" SupportsDisabledAttribute="True">
            <table align="center">
            <tr>
            <td align="center">
                <dx:ASPxLabel ID="lblNroTrans" runat="server">
                </dx:ASPxLabel>
            </td>
            </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                </tr>
            <tr>
            <td  align="center">
                <dx:ASPxButton ID="ASPxButton2" runat="server" Text="Aceptar" Width="100px" 
                    CausesValidation="False" OnClick="btnAceptarM_Click" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    AutoPostBack="False">
                    <ClientSideEvents Click="function(s, e) {
	popupNroTrans.Hide();
}" />
                </dx:ASPxButton>
            </td>
            </tr>
            </table>
            </dx:PanelContent>
        </panelcollection>
    </dx:ASPxPanel>
            </dx:PopupControlContentControl>
</ContentCollection>
    </dx:ASPxPopupControl>
    <br />
    <br />
    <dx:ASPxPopupControl ID="popupAgregarBenef" runat="server" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" EnableHotTrack="False" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        Width="500px" AllowDragging="True" ClientInstanceName="popupAgregarBenef" 
        CloseAction="CloseButton" HeaderText="Agregar Beneficiario" Modal="True" 
        PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
        ShowPageScrollbarWhenModal="True">
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <HeaderStyle>
        <Paddings PaddingLeft="7px" />
        </HeaderStyle>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
            <dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
           
                        
    <table align="center" width="500px">
    <tr>
    <td width="450px">
    
   
    <fieldset style="width:400px">
    <legend>Beneficiario</legend>

   <table width="450px" align="center">
   <tr>
   <td>
       <dx:ASPxLabel ID="ASPxLabel6" runat="server" 
           CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
           CssPostfix="Office2003Blue" Text="Cuenta Beneficiario :">
       </dx:ASPxLabel>
       </td>
   <td style="text-align:left" align="left">
       <dx:ASPxTextBox ID="txtCuentaBen" runat="server" 
           CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
           CssPostfix="Office2003Blue" 
           SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" 
           Width="200px" MaxLength="50" onkeypress="return soloDocumento(event)">
           <ValidationSettings SetFocusOnError="True" ValidationGroup="ADCNET">
               <RequiredField ErrorText="Obligatorio" IsRequired="True" />
           </ValidationSettings>
       </dx:ASPxTextBox>
       </td>
   </tr>
   <tr>
   <td>
       <dx:ASPxLabel ID="ASPxLabel14" runat="server" 
           CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
           CssPostfix="Office2003Blue" Text="Nombre Beneficiario  :">
       </dx:ASPxLabel>
       </td>
   <td style="text-align:left" align="left">
       <dx:ASPxTextBox ID="txtNombreBen" runat="server" 
           CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
           CssPostfix="Office2003Blue" 
           SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" 
           Width="200px" MaxLength="50">
           <ValidationSettings SetFocusOnError="True" ValidationGroup="ADCNET">
               <RequiredField ErrorText="Obligatorio" IsRequired="True" />
           </ValidationSettings>
       </dx:ASPxTextBox>
       </td>
   </tr>
   <tr>
   <td style="text-align:left">
       <dx:ASPxLabel ID="ASPxLabel15" runat="server" 
           CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
           CssPostfix="Office2003Blue" Text="Dirección Beneficiario :" Width="180px">
       </dx:ASPxLabel>
       </td>
   <td align="left">
       <dx:ASPxTextBox ID="txtDireccionBen" runat="server" 
           CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
           CssPostfix="Office2003Blue" 
           SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" 
           Width="250px" MaxLength="50">
           <ValidationSettings SetFocusOnError="True" ValidationGroup="ADCNET">
               <RequiredField ErrorText="Obligatorio" IsRequired="True" />
           </ValidationSettings>
       </dx:ASPxTextBox>
       </td>
   </tr>
   <tr>
   <td></td>
   <td></td>
   </tr>
   </table>
</fieldset>
 </td>
    </tr>
    </table>
   <table width="500px" align="center">
   <tr>
   <td class="pad" style="width:33%">
       <dx:ASPxButton ID="btnAgregarB" runat="server" 
           CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
           CssPostfix="Office2003Blue" 
           SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" 
           Text="Agregar" Width="100px" onclick="btnAgregarB_Click" 
           ValidationGroup="ADCNET">
       </dx:ASPxButton>
       </td>
   <td class="pad" style="width:33%">
       <dx:ASPxButton ID="btnModificarB" runat="server" 
           CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
           CssPostfix="Office2003Blue" 
           SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" 
           Text="Modificar" onclick="btnModificarB_Click" Width="100px" 
           ValidationGroup="ADCNET">
       </dx:ASPxButton>
       </td>
   <td class="pad" style="width:33%">
       <dx:ASPxButton ID="btnEliminarB" runat="server" 
           CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
           CssPostfix="Office2003Blue" 
           SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" 
           Text="Eliminar" Width="100px" onclick="btnEliminarB_Click" 
           ValidationGroup="ADCNET">
       </dx:ASPxButton>
       </td>
   </tr>
   <tr>
   <td colspan="3">
       <dx:ASPxGridView ID="grdBeneficiario" runat="server" 
           AutoGenerateColumns="False" EnableCallBacks="False" Width="100%" 
           CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
           CssPostfix="Office2003Blue" KeyFieldName="cuentaBeneficiario" 
           onfocusedrowchanged="grdBeneficiario_FocusedRowChanged">
           <Columns>
               <dx:GridViewDataTextColumn Caption="Cuenta Beneficiario" 
                   FieldName="cuentaBeneficiario" VisibleIndex="0">
               </dx:GridViewDataTextColumn>
               <dx:GridViewDataTextColumn Caption="Nombre Beneficiario" 
                   FieldName="nomBeneficiario" VisibleIndex="1">
               </dx:GridViewDataTextColumn>
               <dx:GridViewDataTextColumn Caption="Dirección Beneficiario" 
                   FieldName="dirBeneficiario" VisibleIndex="2">
               </dx:GridViewDataTextColumn>
               <dx:GridViewDataTextColumn Caption="IDC_CLIENTE" FieldName="idcCliente" 
                   VisibleIndex="3" Visible="False">
               </dx:GridViewDataTextColumn>
           </Columns>
           <SettingsBehavior ProcessFocusedRowChangedOnServer="True" 
               AllowFocusedRow="True" AllowSort="False" />
           <SettingsBehavior ProcessFocusedRowChangedOnServer="True" /><SettingsBehavior ProcessFocusedRowChangedOnServer="True" /><SettingsBehavior ProcessFocusedRowChangedOnServer="True" /><SettingsPager Visible="False">
           </SettingsPager>
           <Settings ShowVerticalScrollBar="True" />
       <Settings ShowVerticalScrollBar="True" /><Settings ShowVerticalScrollBar="True" /><Settings ShowVerticalScrollBar="True" />
           <Images SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css">
               <LoadingPanelOnStatusBar Url="~/App_Themes/Office2003Blue/GridView/gvLoadingOnStatusBar.gif">
               </LoadingPanelOnStatusBar>
               <LoadingPanel Url="~/App_Themes/Office2003Blue/GridView/Loading.gif">
               </LoadingPanel>
           </Images>
           <ImagesFilterControl>
               <LoadingPanel Url="~/App_Themes/Office2003Blue/Editors/Loading.gif">
               </LoadingPanel>
           </ImagesFilterControl>
           <Styles CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
               CssPostfix="Office2003Blue">
               <LoadingPanel ImageSpacing="10px">
               </LoadingPanel>
               <Header ImageSpacing="5px" SortingImageSpacing="5px">
               </Header>
           </Styles>
           <StylesEditors>
               <ProgressBar Height="25px">
               </ProgressBar>
           </StylesEditors>
       </dx:ASPxGridView>
       </td>
   </tr>
   <tr>
   <td  style="width:33%">
       &nbsp;</td>
   <td class="p" style="width:33%">
       <dx:ASPxButton ID="btnCerrar" runat="server" 
           CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
           CssPostfix="Office2003Blue" 
           SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" Text="Cerrar" 
           Width="100px" CausesValidation="False" AutoPostBack="False">
           <ClientSideEvents Click="function(s, e) {
	popupAgregarBenef.Hide();
}" />
       </dx:ASPxButton>
       </td>
   <td style="width:33%">
       &nbsp;</td>
   </tr>
   </table>
   
                       

                 
                <br />
                <br />
                <br />
   
                       

                 
            </dx:PopupControlContentControl>
        </ContentCollection>
    </dx:ASPxPopupControl>
</ContentTemplate>
</asp:UpdatePanel>
    <br />
 
      
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
</asp:Content>
